class ErrorCode(object):
    # 成功
    OK = "0"
    # 数据库查询错误
    DBERR = "4001"
    # 无数据
    NODATA = "4002"
    # 数据已存在
    DATAEXIST = "4003"
    # 数据错误
    DATAERR = "4004"
    # 用户未登录
    SESSIONERR = "4101"
    # 用户登录失败
    LOGINERR = "4102"
    # 参数错误
    PARAMERR = "4103"
    # 用户不存在或未激活
    USERERR = "4104"
    # 用户身份错误
    ROLEERR = "4105"
    # 密码错误
    PWDERR = "4106"
    # 非法请求或请求次数受限
    REQERR = "4201"
    # IP受限
    IPERR = "4202"
    # 第三方系统错误
    THIRDERR = "4301"
    # 文件读写错误
    IOERR = "4302"
    # 内部错误
    SERVERERR = "4500"
    # 未知错误
    UNKOWNERR = "4501"
